# -*- coding: utf-8 -*-
"""
@Time: 2022/2/15 13:31
@Author: jins
@File: 登陆服务压力测试.py
@Introduction: 
"""
from multiprocessing import Process
from threading import Thread
import common.requests_api as r

url = '10.0.17.17:8099/SecurityService/sys/login'
body = {
    "username": "es",
    "password": "e10adc3949ba59abbe56e057f20f883e",
    "authType": "password",
    "sysCode": "es_web",
    "envType": "dev"
}


def login_for_times(body):
    res = r.auto_request(url=url, body=body)
    print(res)


if __name__ == '__main__':
    # process_list = []
    # for i in range(5):
    #     p = Process(target=login_for_times, args=(body,))
    #     p.start()
    #     process_list.append(p)
    # for i in process_list:
    #     i.join()
    login_for_times(body)
